// 
// Decompiled by Procyon v0.5.36
// 

package com.orange.boot.handler;

import java.util.Date;
import java.time.LocalDateTime;
import org.apache.ibatis.reflection.MetaObject;
import org.springframework.stereotype.Component;
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;

@Component
public class MyMetaObjectHandler implements MetaObjectHandler
{
    public void insertFill(final MetaObject metaObject) {
        this.setFieldValByName("gmtCreate", (Object)LocalDateTime.now(), metaObject);
        this.setFieldValByName("gmtModified", (Object)new Date(), metaObject);
        this.setFieldValByName("isDelete", (Object)false, metaObject);
        this.setFieldValByName("version", (Object)1, metaObject);
    }
    
    public void updateFill(final MetaObject metaObject) {
        this.setFieldValByName("gmtModified", (Object)new Date(), metaObject);
    }
}
